home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16559 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!news
  2. From: giuliano@ix.netcom.com(Giuliano Carlini)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Memory Loss Problem
  5. Date: 11 Apr 1996 06:46:39 GMT
  6. Organization: Netcom
  7. Message-ID: <4ki9sf$me8@dfw-ixnews8.ix.netcom.com>
  8. References: <497cc$111a32.23a@news.annex.com>
  9. NNTP-Posting-Host: lbx-ca7-14.ix.netcom.com
  10. X-NETCOM-Date: Thu Apr 11  1:46:39 AM CDT 1996
  11.  
  12. In <497cc$111a32.23a@news.annex.com> bjg@annex.com (Froman) writes: 
  13. >
  14. >memory problem.  If I use the small memory model, it runs out of
  15. memory 
  16. >after 19 entries.  On the large model (1MB memory, 64k max size of 
  17. >array), it can read 155 entries.  I cannot seem to trace down the 
  18. >problem...I cannot see where an error of 10-20x the amount of memory 
  19. >needed could possibly take place.  Any ideas?
  20.  
  21. I'd suggest using a garbage collector to fix this sort of thing. You
  22. could spend countless hours finding and fixing this. And then doing it
  23. again with the next memory leak. Or you can use a GC and not worry
  24. about it again. ftp://parcftp.xerox.com/pub/gc has an excellent one for
  25. free. www.geodesic.com is a the home page for geodesic systems, if
  26. you'd prefer a commercial product.
  27.  
  28. g
  29.